package cn.jobstart.searchExt;

import cn.jobstart.model.Company;
import cn.jobstart.search.CompanySearch;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;


/**
 * @author sunke
 * @Date 2023-09-06 15:00:20
 * @description CompanySearchExt      企业
 */
@Data
@Accessors(chain = true)
@ApiModel("企业CompanySearchExt")
public class CompanySearchExt extends CompanySearch<CompanySearchExt> {

    @ApiModelProperty("城市")
    private List cityList;
    @ApiModelProperty("行业")
    private List industryList;

    public static CompanySearchExt getInstance() {
        return new CompanySearchExt();
    }

    public CompanySearchExt setIndustryList(List industryList) {
        this.industryList = industryList;
        setInField(Company.INDUSTRY, industryList);
        return this;
    }

    public CompanySearchExt setCityList(List cityList) {
        this.cityList = cityList;
        setInField(Company.CITY, cityList);
        return this;
    }

    @Override
    public CompanySearchExt getSubThis() {
        return this;
    }

}

